const express = require('express');
const path = require('path');
const app = express();
const expressWs = require('express-ws')(app);

const productRouter = require("./routes/productRouter")
const websocketRouter = require("./routes/websocketRouter")
const aiRouter = require("./routes/aiRouter")

app.use(express.json());
app.use(express.urlencoded({ extended: false }));
app.use(express.static(path.join(__dirname, 'public')));

app.use("/product", productRouter)
app.use("/wbs", websocketRouter)
app.use("/ai", aiRouter)

app.listen(3000);